package flex.cc.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Description:application.yml配置文件对应类
 * Date:2021-12-08
 * Author:dupenghui
 */
@Component
@PropertySource("classpath:application.yml")
public class Config {
	
	/**
	 * 获取token接口
	 */
	public static String upPointsTokenUrl;
	
	/**
	 * 道路救援轨迹同步接口
	 */
	public static String upPointsTrackUrl;
	
	/**
	 * 上游坐标接口：系统编码
	 */
	public static String upPointsSysCode;
	
	/**
	 * 上游坐标接口：渠道
	 */
	public static String upPointsChannel;
	
	/**
	 * 上游坐标接口：密码
	 */
	public static String upPointsPassWord;

	/**
	 * 上游坐标接口：加密解密key值
	 */
	public static String upPointsUrlKey;

	@Value("${api.config.upPointsTokenUrl}")
	public void setUpPointsTokenUrl(String upPointsTokenUrl) {
		Config.upPointsTokenUrl = upPointsTokenUrl;
	}

	@Value("${api.config.upPointsTrackUrl}")
	public void setUpPointsTrackUrl(String upPointsTrackUrl) {
		Config.upPointsTrackUrl = upPointsTrackUrl;
	}

	@Value("${api.config.upPointsSysCode}")
	public void setUpPointsSysCode(String upPointsSysCode) {
		Config.upPointsSysCode = upPointsSysCode;
	}

	@Value("${api.config.upPointsChannel}")
	public void setUpPointsChannel(String upPointsChannel) {
		Config.upPointsChannel = upPointsChannel;
	}

	@Value("${api.config.upPointsPassWord}")
	public void setUpPointsPassWord(String upPointsPassWord) {
		Config.upPointsPassWord = upPointsPassWord;
	}

	@Value("${api.config.upPointsUrlKey}")
	public void setUpPointsUrlKey(String upPointsUrlKey) {
		Config.upPointsUrlKey = upPointsUrlKey;
	}

}
